FINS Thought Machine Customers System API - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
create-customer-address-requestCustomer Address Create Mapping for Thought Machine System
create-customers-individual-requestCustomer Create Mapping for Thought Machine System
create-customers-organization-requestCustomer Create Mapping for Thought Machine System
get-customer-lookup-responseRetrieve Customer from Thought Machine response mapping
get-customer-responseRetrieve Customer from Thought Machine response mapping
ping-check-dependency-sys-api-response
update-customer-addition-infoUpdate Customer Additional Information request for Thought Machine response mapping
update-customer-addressUpdate Customer Address in Thought Machine response mapping
update-customer-requestCustomer Update Mapping for Thought Machine System
get-customer-audit-info-responseCustomer Action Log response mapping

create-customer-address-request

Customer Address Create Mapping for Thought Machine System

Source: ./src/main/resources/dwl/create-customer-address-request.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Create Customer Address

JSON used by the Thought MachineCIMDescription
customer_address.streetparty.contactPoints.ContactPointAddress.addressLine1The address detail Customer.
customer_address.cityparty.contactPoints.ContactPointAddress.cityNameThe city of the Customer.
customer_address.postal_areaparty.contactPoints.ContactPointAddress.postalCodeTextThe city of the Customer.
customer_address.governing_districtparty.contactPoints.ContactPointAddress.stateProvinceNameThe state of the Customer.
customer_address.countryparty.contactPoints.ContactPointAddress.countryThe country of the Customer.
customer_address.address_typeCUSTOMER_ADDRESS_TYPE_UNKNOWNThe Address Type of the Customer.
customer_address.customer_idcustomerIdThe customerId of the Customer.

(back to top)

create-customers-individual-request

Customer Create Mapping for Thought Machine System

Source: ./src/main/resources/dwl/create-customers-individual-request.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Create Customer

JSON used by the Thought MachineCIMDescription
customer.statuscustomerStatusThe status of the customer
customer_details.titleparty.salutationThe salutation of the Customer.
customer_details.first_nameparty.firstNameThe Firstname of the Customer.
customer_details.last_nameparty.lastNameThe lastname of the Customer.
customer_details.dobparty.birthDateThe date of birth of the Customer.
customer_details.email_addressparty.contactPoints.ContactPointEmail.emailAddressThe email of the Customer.
customer_details.mobile_phone_numberparty.contactPoints.ContactPointPhone.telephoneNumberThe Phone Number of the Customer.
customer_details.external_customer_idexternalIds.externalIdThe externalId of the Customer.
additional_details.createdDateauditInfo.createdDateIdentifies the system or user which created the entity - default as current timestamp
additional_details.createdByauditInfo.createdByTimestamp of when the entity was created - default as current timestamp
additional_details.updatedByauditInfo.updatedByIdentifies the system or user which last updated the entity - default as property app.name
additional_details.updatedDateauditInfo.updatedDateTimestamp of when the entity was last updated - default as current timestamp
additional_details.isDeletedauditInfo.createdByCustomer Delete Information Stored in Thought Machine
additional_details.customerNumbercustomerNumberThe Customer Number to be stored in Thought Machine
additional_details.partyTypeIndividualpartyType to be stored in Thought Machine

(back to top)

create-customers-organization-request

Customer Create Mapping for Thought Machine System

Source: ./src/main/resources/dwl/create-customers-organization-request.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Create Customer

JSON used by the Thought MachineCIMDescription
customer.statuscustomerStatusThe status of the customer
customer_details.titleparty.salutationThe salutation of the Customer.
customer_details.first_nameparty.firstNameThe Firstname of the Customer.
customer_details.last_nameparty.lastNameThe lastname of the Customer.
customer_details.dobparty.birthDateThe date of birth of the Customer.
customer_details.email_addressparty.contactPoints.ContactPointEmail.emailAddressThe email of the Customer.
customer_details.mobile_phone_numberparty.contactPoints.ContactPointPhone.telephoneNumberThe Phone Number of the Customer.
customer_details.external_customer_idexternalIds.externalIdThe externalId of the Customer.
additional_details.createdDateauditInfo.createdDateIdentifies the system or user which created the entity - default as current timestamp
additional_details.createdByauditInfo.createdByTimestamp of when the entity was created - default as current timestamp
additional_details.updatedByauditInfo.updatedByIdentifies the system or user which last updated the entity - default as property app.name
additional_details.updatedDateauditInfo.updatedDateTimestamp of when the entity was last updated - default as current timestamp
additional_details.isDeletedauditInfo.createdByCustomer Delete Information Stored in Thought Machine
additional_details.customerNumbercustomerNumberThe Customer Number to be stored in Thought Machine
additional_details.partyTypeOrganizationpartyType to be stored in Thought Machine

(back to top)

get-customer-lookup-response

Retrieve Customer from Thought Machine response mapping

Source: ./src/main/resources/dwl/get-customer-lookup-response.dwl

Variables

var s

Maps CIM Customer to JSON which is used by Thought Machine - Get Customer

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Get Customer

CIMThought MachineDescription
ididThe id of the customer in Thought Machine System
customerNumberadditional_details.customerNumberThe Customer Number in Thought Machine System
customerStatuscustomer.statusThe status of the customer in Thought Machine system
party.idnullSet as null.
party.salutationcustomer_details.titleThe Salutation of the Customer.
party.personNameFirstName ++ LastNameFullname of the Customer (concatenate FistName + LastName).
party.firstNamecustomer_details.firstNameThe Firstname of the Customer.
party.lastNamecustomer_details.lastNameThe Lastname of the Customer.
party.birthDatecustomer_details.dobThe Customer birth date.
party.partyTypeadditional_details.partyTypeThe party type of the customer.
party.contactPointscustomer_details.identifiersThe Contact Points of the customer.
externalIdscustomer_details.external_customer_idThe externalIds of the customer that are stored in Thought Machine System
auditInfo.createdByadditional_details.createdDateIdentifies the system or user which created the entity
auditInfo.createdDateCREATED_DATETimestamp of when the entity was created - default as current timestamp
auditInfo.updatedByadditional_details.createdDateIdentifies the system or user which last updated the entity
auditInfo.updatedDateadditional_details.createdDateTimestamp of when the entity was last updated
auditInfo.isDeletedadditional_details.createdDateIndicates whether or not the entity has been soft-deleted - default as false

(back to top)

get-customer-response

Retrieve Customer from Thought Machine response mapping

Source: ./src/main/resources/dwl/get-customer-response.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Get Customer

CIMThought MachineDescription
ididThe id of the customer in Thought Machine System
customerNumberadditional_details.customerNumberThe Customer Number in Thought Machine System
customerStatuscustomer.statusThe status of the customer in Thought Machine system
party.idnullSet as null.
party.salutationcustomer_details.titleThe Salutation of the Customer.
party.personNameFirstName ++ LastNameFullname of the Customer (concatenate FistName + LastName).
party.firstNamecustomer_details.firstNameThe Firstname of the Customer.
party.lastNamecustomer_details.lastNameThe Lastname of the Customer.
party.birthDatecustomer_details.dobThe Customer birth date.
party.partyTypeadditional_details.partyTypeThe party type of the customer.
party.contactPointscustomer_details.identifiersThe Contact Points of the customer.
externalIdscustomer_details.external_customer_idThe externalIds of the customer that are stored in Thought Machine System
auditInfo.createdByadditional_details.createdDateIdentifies the system or user which created the entity
auditInfo.createdDateCREATED_DATETimestamp of when the entity was created - default as current timestamp
auditInfo.updatedByadditional_details.createdDateIdentifies the system or user which last updated the entity
auditInfo.updatedDateadditional_details.createdDateTimestamp of when the entity was last updated
auditInfo.isDeletedadditional_details.createdDateIndicates whether or not the entity has been soft-deleted - default as false

(back to top)

ping-check-dependency-sys-api-response

Source: ./src/main/resources/dwl/ping-check-dependency-sys-api-response.dwl

(back to top)

update-customer-addition-info

Update Customer Additional Information request for Thought Machine response mapping

Source: ./src/main/resources/dwl/update-customer-addition-info.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Create Customer Address

JSON used by the Thought MachineCIMDescription
additional_details.createdDateauditInfo.createdDateIdentifies the system or user which created the entity - default as current timestamp
additional_details.createdByauditInfo.createdByTimestamp of when the entity was created - default as current timestamp
additional_details.updatedByauditInfo.updatedByIdentifies the system or user which last updated the entity - default as property app.name
additional_details.updatedDateauditInfo.updatedDateTimestamp of when the entity was last updated - default as current timestamp
additional_details.isDeletedauditInfo.createdByCustomer Delete Information Stored in Thought Machine
additional_details.customerNumbercustomerNumberThe Customer Number to be stored in Thought Machine
additional_details.partyTypeIndividualpartyType to be stored in Thought Machine

(back to top)

update-customer-address

Update Customer Address in Thought Machine response mapping

Source: ./src/main/resources/dwl/update-customer-address.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Update Customer Address

JSON used by the Thought MachineCIMDescription
customer_address.streetparty.contactPoints.ContactPointAddress.addressLine1The address detail Customer.
customer_address.cityparty.contactPoints.ContactPointAddress.cityNameThe city of the Customer.
customer_address.postal_areaparty.contactPoints.ContactPointAddress.postalCodeTextThe city of the Customer.
customer_address.governing_districtparty.contactPoints.ContactPointAddress.stateProvinceNameThe state of the Customer.
customer_address.countryparty.contactPoints.ContactPointAddress.countryThe country of the Customer.
customer_address.address_typeCUSTOMER_ADDRESS_TYPE_UNKNOWNThe Address Type of the Customer.
customer_address.customer_idcustomerIdThe customerId of the Customer.

(back to top)

update-customer-request

Customer Update Mapping for Thought Machine System

Source: ./src/main/resources/dwl/update-customer-request.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by Thought Machine - Update Customer

JSON used by the Thought MachineCIMDescription
customer.statuscustomerStatusThe status of the customer
customer_details.titleparty.salutationThe salutation of the Customer.
customer_details.first_nameparty.firstNameThe Firstname of the Customer.
customer_details.last_nameparty.lastNameThe lastname of the Customer.
customer_details.dobparty.birthDateThe date of birth of the Customer.
customer_details.email_addressparty.contactPoints.ContactPointEmail.emailAddressThe email of the Customer.
customer_details.mobile_phone_numberparty.contactPoints.ContactPointPhone.telephoneNumberThe Phone Number of the Customer.
customer_details.external_customer_idexternalIds.externalIdThe externalId of the Customer.
additional_details.createdDateauditInfo.createdDateIdentifies the system or user which created the entity - default as current timestamp
additional_details.createdByauditInfo.createdByTimestamp of when the entity was created - default as current timestamp
additional_details.updatedByauditInfo.updatedByIdentifies the system or user which last updated the entity - default as property app.name
additional_details.updatedDateauditInfo.updatedDateTimestamp of when the entity was last updated - default as current timestamp
additional_details.isDeletedauditInfo.createdByCustomer Delete Information Stored in Thought Machine
additional_details.customerNumbercustomerNumberThe Customer Number to be stored in Thought Machine
additional_details.partyTypeIndividualpartyType to be stored in Thought Machine

(back to top)

get-customer-audit-info-response

Customer Action Log response mapping

Source: ./src/main/resources/dwl/get-customer-audit-info-response.dwl

Mapping Tables

The action-logs endpoint of the Audit API is used to retrieve the Audit information of an Account in Thought Machine

action-logs ResponseCIMDescription
action_logs.request_initiator_idcreatedByThe ID of the User who created the Customer.
action_logs.create_timestampcreatedDateTimestamp of when the Customer was last created.
action_logs.request_initiator_idupdatedByThe ID of the User who last update the Customer.
action_logs.create_timestampupdatedDateTimestamp of when the Customer was last updated.

(back to top)


Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onNov 10, 2023
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.1
1.0.0